package com.atguigu.lease.web.app.service;

import com.atguigu.lease.model.entity.ViewAppointment;
import com.atguigu.lease.web.app.vo.appointment.AppointmentDetailVo;
import com.atguigu.lease.web.app.vo.appointment.AppointmentItemVo;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;


public interface ViewAppointmentService extends IService<ViewAppointment> {
    /**
     * 保存或更新预约看房信息
     * @param viewAppointment 预约看房信息
     * @return 保存或更新结果
     */
    boolean saveOrUpdateCustom(ViewAppointment viewAppointment);

    /**
     * 查询当前用户的预约看房列表
     * @return 预约看房列表
     */
    List<AppointmentItemVo> listItem();

    /**
     * 根据ID查询预约详情信息
     * @param id 预约ID
     * @return 预约详情信息
     */
    AppointmentDetailVo getDetailById(Long id);

}
